package com.example;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@Slf4j
@SpringBootApplication
@MapperScan("com.example.entity")
public class RedistestApplication extends SpringBootServletInitializer {

    //打War包必须要用到的
    @Override
    protected SpringApplicationBuilder configure(
            SpringApplicationBuilder application) {
        return application.sources(RedistestApplication.class);
    }

    public static void main(String[] args) {


        SpringApplication.run(RedistestApplication.class, args);

    }


}
